import request from '@/utils/request'

// 查询公海记录进展列表
export function listRecord(query) {
  return request({
    url: '/sea/record/list',
    method: 'get',
    params: query
  })
}

// 查询公海记录进展详细
export function getRecord(recordsId) {
  return request({
    url: '/sea/record/' + recordsId,
    method: 'get'
  })
}

// 新增公海记录进展
export function addRecord(data) {
  return request({
    url: '/sea/record',
    method: 'post',
    data: data
  })
}

// 修改公海记录进展
export function updateRecord(data) {
  return request({
    url: '/sea/record',
    method: 'put',
    data: data
  })
}

// 删除公海记录进展
export function delRecord(recordsId) {
  return request({
    url: '/sea/record/' + recordsId,
    method: 'delete'
  })
}
